package net.suncapper.wcss.model.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 学校用户白名单设置
 * </p>
 *
 * @author ztr
 * @since 2025-10-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("wcss_whitelist_setting")
@ApiModel(value="WhitelistSetting对象", description="学校用户白名单设置")
public class WhitelistSetting implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "限定用户SN")
    @TableField("sn")
    private String sn;
    @ApiModelProperty(value = "用户名")
    @TableField("name")
    private String name;
    @ApiModelProperty(value = "用户角色id")
    @TableField("role_id")
    private Long roleId;
    @ApiModelProperty(value = "是否启用")
    @TableField("is_enabled")
    private Boolean enabled;
    @ApiModelProperty(value = "是否删除")
    @TableField("is_deleted")
    @TableLogic
    private Long deleted;
    @ApiModelProperty(value = "创建时间")
    @TableField("gmt_created")
    private LocalDateTime gmtCreated;
    @ApiModelProperty(value = "更新时间")
    @TableField("gmt_modified")
    private LocalDateTime gmtModified;
    @ApiModelProperty(value = "密码")
    @TableField("password")
    private String password;
    @ApiModelProperty(value="头像")
    @TableField("avatar")
    private String avatar;
}
